package com.ophiux.cs.infrastructure.mapper.chat;

import java.util.List;

import com.ophiux.cs.domain.chat.model.entity.CSChatMessageSend;
import com.ophiux.cs.domain.chat.model.valueobj.CSChatMessageQuery;
import com.ophiux.utils.exception.OphiuxDaoException;

/**
 * 聊天记录
 * @author chennh
 *
 */
public interface CSChatMessageSendMapper {

	/*
	 * 存储消息记录
	 */
	public void insert(CSChatMessageSend csdms) throws OphiuxDaoException;
	
	/**
	 * 更新消息记录
	 * @param csdms
	 */
	public void update(CSChatMessageSend csdms) throws OphiuxDaoException;
	
	/**
	 * 获取聊天发送记录-根据发送ID
	 * @param sendID
	 * @return
	 */
	public CSChatMessageSend getCSChatMessageSendBySendID(String SEND_ID) throws OphiuxDaoException;
	
	/**
	 * 根据消息ID获取发送记录
	 * @param MSG_ID
	 * @return
	 * @throws OphiuxDaoException
	 */
	public CSChatMessageSend getCSChatMessageSendByMsgID(String MSG_ID) throws OphiuxDaoException;

	/**
	 * 多条件联合查询聊天记录
	 * @param query
	 * @return
	 * @throws OphiuxDaoException
	 */
	public List<CSChatMessageSend> getCSChatMessageSends(CSChatMessageQuery query) throws OphiuxDaoException;

	
}
